﻿using Abp.Application.Services.Dto;
using SingleUserMall.Commissions.Form;
using SingleUserMall.Commissions.VO;
using SingleUserMall.Common;
using System.ComponentModel;
using System.Threading.Tasks;

namespace SingleUserMall.Commissions
{
    /// <summary>
    /// 佣金分润比例
    /// </summary>
    [Description("佣金分润比例")]
    public interface ICommissionManageAppService : IManageService
    {
        /// <summary>
        /// 获得分润比例
        /// </summary>
       /// <param name="form"></param>
        /// <returns></returns>
        Task<PagedResultDto<CommissionVO>> GetCommissionsAsync(PagedForm form);
        /// <summary>
        /// 获得分润比例详情
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<CommissionVO> GetCommissionAsync(SingleId<long> form);
        /// <summary>
        /// 保存分润信息
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task SaveCommissionAsync(CommissionForm form);
    }
}
